package com.itheima.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @Description JwtProperties
 * @Author junjie Wu 吴俊杰
 * @Date 2024-03-05
 */

@ConfigurationProperties(prefix = "heima.jwt")
@Component
@Data
public class JwtProperties {
    /**
     * 生成jwt令牌相关配置
     */
    private String secretKey;
    private long ttl;
    private String tokenName;
}
